package com.neudu.ssrs_yyzxservice.mapper;

import com.neudu.ssrs_yyzxservice.pojo.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86182
* @description 针对表【customer】的数据库操作Mapper
* @createDate 2025-04-15 09:36:26
* @Entity com.neudu.ssrs_yyzxservice.pojo.Customer
*/
public interface CustomerMapper extends BaseMapper<Customer> {
    List<Customer> getCustomerData(Integer id);
    @Select("SELECT * FROM customer WHERE bed_id = #{bedId}")
    Customer getCustomerByBedId(Integer bedId);

    List<Customer> getAvailableCustomers();

    void updateBedId(@Param("id") Integer customerId, @Param("bedId") Integer bedId);

    Customer selectById(@Param("id") Integer id);
}



